import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-07-16
 * Time: 18:29
 */
public class test1 {
    public static void main(String[] args) throws IOException {
//        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
//        String s = bufferedReader.readLine();
        String s = "980364123";
        int n  = s.length();
        StringBuilder ret = new StringBuilder();
        for(int i=0;i<n;i++){
            char ch = s.charAt(i);
            ret.append(ch);
            if((i+1)%3==0){
                ret.append(",");
            }
        }
        s = ret.toString();
        n = s.length();
        if(s.charAt(s.length()-1)==','){
            s = s.substring(0,n-1);
        }
        System.out.println(s);
    }
}
